import request from '@/utils/request';

// 办公室信息
export function getRoomDetial(roomId) {
  return request({
    url: 'assets/roomDetail',
    method: 'post',
    data: {
      room_id: roomId
    }
  });
}
// 资产列表
export function getAssestList(data) {
  return request({
    url: 'assets/list',
    method: 'post',
    data
  });
}
// 发起工单
export function postApply(data) {
  return request({
    url: 'assets/apply',
    method: 'post',
    data
  });
}
// 获取用户信息
export function getUserInfo(uid) {
  return request({
    url: 'assets/userDetail',
    method: 'post',
    data: {
      uid
    }
  });
}
// 搜索人员姓名
export function searchUser(data) {
  return request({
    url: 'assets/userList',
    method: 'post',
    data
  });
}
// 获取固定资产报表数据
export function getAssestReportData() {
  return request({
    url: 'assets/biData',
    method: 'post',
  });
}
export function getsuppliesList(data) {
  return request({
    url: 'assets/suppliesList',
    method: 'post',
    data
  });
}